import 'package:hive/hive.dart';

part 'answer_model.g.dart';

@HiveType(typeId: 2)
class AnswerModel extends HiveObject {
  @HiveField(0)
  String id;

  @HiveField(1)
  String questionId;

  @HiveField(2)
  String userId;

  @HiveField(3)
  String content;

  @HiveField(4)
  DateTime createdAt;

  AnswerModel({
    required this.id,
    required this.questionId,
    required this.userId,
    required this.content,
    required this.createdAt,
  });
}
